import 'dart:ui';

import 'package:flutter/material.dart';

class ListCom extends StatelessWidget{
  final listDec;
  final listName;
  ListCom(this.listName,this.listDec);
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      padding: EdgeInsetsDirectional.fromSTEB(10,0,10,10),
      decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.circular(5)
      ),
      child: Flex(
        direction: Axis.horizontal,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Expanded(
            flex: 1,
            child: Container(
              margin: EdgeInsetsDirectional.fromSTEB(0,5,0,0),
              child: Icon(
                Icons.save_alt,
                color: Colors.grey,
                size: 20,
              ),
            )
          ),
          Expanded(
            flex: 10,
            child: Container(
              padding: EdgeInsetsDirectional.fromSTEB(0,0,0,10),
              decoration: BoxDecoration(
                  color: Colors.white,
                  border: Border(bottom:BorderSide(width: 1.0, color:Color.fromRGBO(248, 248, 248,1)))
              ),
              child: Flex(
                direction: Axis.horizontal,
                children: <Widget>[
                  Expanded(
                    flex: 7,
                    child:  Text(listName,
                      style: TextStyle(
                          fontSize: 16
                      ),
                    ),
                  ),
                  Expanded(
                    flex: 3,
                    child:  Row(
                      mainAxisAlignment: MainAxisAlignment.end,
                      children: <Widget>[
                        Text(listDec,
                          style: TextStyle(
                              fontSize: 12
                          ),
                        ),
                        Icon(
                          Icons.arrow_right,
                          color: Colors.grey,
                          size: 30.0,
                        ),
                      ],
                    ),
                  ),
                ],
              ),
            )
          )
        ],
      ),
    );
  }

}